<!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>解析screen对象(实例)</title>
</head>
<body>

    <script type="text/javascript">

        let names = Object.getOwnPropertyNames( Screen );
        console.log( names );

        names = Object.getOwnPropertyNames( Screen.prototype );
        console.log( names );

        console.log( '- - - '.repeat(5) );

        console.log( screen instanceof Screen );

        names = Object.getOwnPropertyNames( screen );
        console.log( names );

        console.log( '- - - '.repeat(5) );

        console.log( screen.availWidth , screen.availHeight );
        console.log( screen.width , screen.height );

        console.log( 1600/1.25 , 900/1.25 );

    </script>
    
</body>
</html>